realtek: pcs: make use of SerDes struct in set_autoneg
authorJonas Jelonek <[email protected]>
Sat, 13 Dec 2025 20:12:13 +0000 (20:12 +0000)
committerRobert Marko <[email protected]>
Tue, 16 Dec 2025 12:38:14 +0000 (13:38 +0100)
commitd2a34744fe43ec9bc9f98b540f954b0ffd6984a0
tree32bbbfbc789f2244f5a4400038c6883e7f8372cb
parentcf03520c71873911c544f687f74e020626a17e2b
realtek: pcs: make use of SerDes struct in set_autoneg

Also switch set_autoneg (and related helper rtpcs_sds_modify) to the
SerDes struct instead of the plain SerDes id by using just the reference
to the SerDes instance instead of (ctrl, sds_id) tuple. This completes
the transition.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit d8dd8bd88f264d39f8c8c1cff056b4ec32a985bb)
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c